<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    /* pc 端  鼠标悬停*/
    button:hover{
      background-color: red;
    }
    /* 移动端 鼠标悬停 */
    button:active{
      background-color: blue;
    }
  </style>
</head>
<body>
  <button>点我啊！！</button>
  
</body>
</html>